package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zg = new Student();
        //访问成员变量
        zg.name = "张光";
        zg.age = 22;
        zg.className = "jsd2408";
        zg.stuId = "001";
        zg.study();
        zg.sayHi();
        zg.playWith("李林");

        Student ll = new Student();

        ll.name = "李林";
        ll.age = 24;
        ll.className = "jsd2406";
        ll.stuId = "007";
        ll.sayHi();
        ll.study();
        ll.playWith("张光");

        Student ml = new Student();
        ml.name= "马龙";
        ml.sayHi();
        ml.study();
        ml.playWith("李林");
    }
}
